package com.mdd.common.dynamicdatasource.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.mdd.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("数据库配置")
@TableName(value = "la_tenant_info")
public class TenantInfo extends BaseEntity {

    @ApiModelProperty(value = "租户ID")
    private String tenantId;

    @ApiModelProperty(value = "租户名称")
    private String tenantName;

    @ApiModelProperty(value = "数据库url")
    private String propUrl;

    @ApiModelProperty(value = "数据库用户名")
    private String propUsername;

    @ApiModelProperty(value = "数据库密码")
    private String propPassword;

    @ApiModelProperty(value = "数据库驱动")
    private String propDriver;

    @ApiModelProperty("是否生效 1 生效 0 不生效除")
    private String isActive;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

}
